package mode.decorator.decorator;

/**
 * 配料抽象类
 *
 * @author xjx
 * @date 2023/7/21 16:10
 */
public abstract class Ingredients extends FriedRice {
    private FriedRice friedRice;

    public Ingredients(FriedRice friedRice) {
        this.friedRice = friedRice;
    }

    @Override
    String getDesc() {
        return this.friedRice.getDesc();
    }

    @Override
    Integer getPrice() {
        return this.friedRice.getPrice();
    }
}
